package controllers

import (
	"github.com/astaxie/beego"
)

type BaseController struct {
	beego.Controller
}
type Head struct {
	Code int    `json:"code"`
	Msg  string `json:"msg"`
}

func (this *BaseController) setRetHead(code int, msg string) *Head {
	return &Head{
		Code: code,
		Msg:  msg,
	}
}
